fix: avoid KeepAlive NPE when idle fires before WS handshake - #30
Merged
typefield merged 6 commits intoJul 30, 2026
Merged
Conversation
IdleStateHandler can emit IdleStateEvent after TCP connect but before WebSocket handshake completes. KeepAliveHandler previously dereferenced a null channel field, logging "connection operation failed" and leaving half-dead connections that recovered only after pool retry. Also close the channel in exceptionCaught so the session pool reconnects promptly. Fixes customer intermittent Stream disconnect (Aone 84622857). Co-authored-by: Cursor <cursoragent@cursor.com>
Strengthen regression for Aone 84622857 KeepAlive NPE and ensure NettyClientHandler closes channel on connection failures. Co-authored-by: Cursor <cursoragent@cursor.com>
|
CR 结论:LGTM,未发现阻断项。 已核对 head 本地验证(macOS / JDK 11):
GitHub CI:4/4 通过。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
修复 WebSocket 握手、停止流程、代理认证、资源释放和制品构建中的稳定性问题:
HashedWheelTimerNioEventLoopGroupstop()在 start 前、正常运行和初始化失败后都终止 consumer executorLATERAuthenticatorRelated issues
Closes #25.
Refs #26.
Refs #16.
Refs #29.
#16/#29 的无信息异常路径已修;具体 Docker 网络环境仍需用户升级后验证。
Validation
mvn clean packageServiceLoadersmoke testactionlint、git diff --check